package com.ztranscript;

import com.spring.AnnotationConfigApplicationContext;
import com.ztranscript.service.UserService;

/**
 * @author ztranscript 2021/9/18 10:22
 **/
public class TestSpring {
    public static void main(String[] args) {
        // 创建容器
        AnnotationConfigApplicationContext applicationContext = new AnnotationConfigApplicationContext(AppConfig.class);

        UserService userService = (UserService) applicationContext.getBean("hello");
        userService.test();
    }
}
